package cn.edu.scau.cmi.tangqingning.entity;

public class Student {
	private int id;
	private String name;
	private Teacher tutor = null;
	
	public Student(int id, String name) {
		this.setId(id);
		this.setName(name);
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	//学生修改老师
	public void UpdateTutor(Teacher t) {
		this.setTutor(t);
	}

	public Teacher getTutor() {
		return tutor;
	}

	//学生选择老师
	public void setTutor(Teacher tutor) {
		this.tutor = tutor;
	}
}
